home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / DialogBoxEditor.h < prev    next >
Text File  |  1996-12-24  |  2KB  |  75 lines

  1. /*
  2.  *  File:       DialogBoxEditor.h
  3.  *  Summary:       A view that knows how to edit a TDialogBox.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->    12/24/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZDialogBox.h>
  17.  
  18. #include "BasePaneEditor.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CEditDialogBoxCommand
  23. // ===================================================================================
  24. class CEditDialogBoxCommand : public CBaseEditPaneCommand<TDialogBox, SDialogBoxInfo> {
  25.  
  26.     typedef CBaseEditPaneCommand<TDialogBox, SDialogBoxInfo> Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CEditDialogBoxCommand();
  33.     
  34.                         CEditDialogBoxCommand(TDialogBox* pane, const SDialogBoxInfo& oldInfo, const SDialogBoxInfo& newInfo);
  35.     
  36. //-----------------------------------
  37. //    Inherited API
  38. //
  39. public:
  40.     virtual    void         UpdatePane(const SDialogBoxInfo& newInfo);
  41. };
  42.  
  43.  
  44. // ===================================================================================
  45. //    CDialogBoxEditor
  46. // ===================================================================================
  47. class CDialogBoxEditor : public CBasePaneEditor<TDialogBox, SDialogBoxInfo, CEditDialogBoxCommand> {
  48.  
  49.     typedef CBasePaneEditor<TDialogBox, SDialogBoxInfo, CEditDialogBoxCommand> Inherited;
  50.     
  51. //-----------------------------------
  52. //    Initialization/Destruction
  53. //
  54. public:
  55.     virtual                ~CDialogBoxEditor();
  56.                         
  57.                         CDialogBoxEditor(TView* superView);
  58.  
  59. //-----------------------------------
  60. //    Inherited API
  61. //
  62. protected:
  63.     virtual SDialogBoxInfo GetEditorInfo() const;
  64.             
  65.     virtual void         SetEditorInfo(const SDialogBoxInfo& info);
  66.                         
  67. //-----------------------------------
  68. //    TReanimator Support
  69. //
  70. public:
  71.     static     MReanimatable* Create(MReanimatable* parent);
  72. };
  73.  
  74.  
  75.